package panel.common;

import javax.swing.*;

public class SearchField extends TextField {
    public JButton searchButton = new JButton(new ImageIcon("src/main/resources/icon/home/search.png"));

    public SearchField(String text) {
        super(text);
        searchButton.setBounds(5, 0, 64, 64);
        searchButton.setBackground(null);
        searchButton.setBorder(null);
        searchButton.addActionListener(e->System.out.print("搜索"));
        add(searchButton);
    }
}
